import { createApp } from 'vue'
import App from './App.vue'
import { store, key, State } from './store'
import { router } from './router'
import './index.css'
import { Router } from 'vue-router'
import { Store } from 'vuex'

export default class Application {
  private static router: Router

  private static store: Store<State>

  static run(el?: string) {
    el = el || '#app'
    this.store = store
    this.router = router
    createApp(App).use(this.router).use(this.store, key).mount(el)
    if ((window as any).ue4) (window as any).ue4('init')
    
  }
}
